// 从pinia中导入defineStore方法
import {defineStore}   from 'pinia'
import {ref} from 'vue'
export const userStore=defineStore("user",()=>{
  //定义状态变量
  let count=ref(0)
  //定义动作
  function increment()
    {
      count.value++
    }
  return {
    count,increment
  }
})
